package org.jmc.refmanager.domain.service;

import java.util.List;

import org.jmc.refmanager.domain.model.Role;

public interface RoleManager {
	/**
	 * Find a Role by id
	 * 
	 * @param id
	 * @return the found Role
	 */
	public Role findById(Integer roleId);

	/**
	 * Find a Role by its name
	 * 
	 * @param roleName
	 * @return the found Role
	 */
	public Role findByRoleName(String roleName);

	/**
	 * Find all Role
	 * 
	 * @return the found Role
	 */
	public List<Role> findAll();

}
